package com.ruoyi.order.station.request.instance;

import com.github.s7connector.api.annotation.S7Variable;
import com.github.s7connector.impl.utils.S7Type;
import lombok.Data;

@Data
public class OP25_2Data {
    //安全接地1测试结果
    @S7Variable(byteOffset = 0, bitOffset = 0, type = S7Type.WORD)
    public Integer testResistanceResult01;
    //安全接地2测试结果
    @S7Variable(byteOffset = 2, bitOffset = 0, type = S7Type.WORD)
    public Integer testResistanceResult02;
    //安全接地3测试结果
    @S7Variable(byteOffset = 4, bitOffset = 0, type = S7Type.WORD)
    public Integer testResistanceResult03;
    //绝缘电阻测试结果
    @S7Variable(byteOffset = 6, bitOffset = 0, type = S7Type.WORD)
    public Integer testDielectricResult;
    //直流耐压测试结果
    @S7Variable(byteOffset = 8, bitOffset = 0, type = S7Type.WORD)
    public Integer testHeightVoltageResult;


    //测试程序号
    @S7Variable(byteOffset = 350, bitOffset = 0, type = S7Type.WORD)
    public Integer testProgramNo;
    //安全接地1电阻值
    @S7Variable(byteOffset = 352, bitOffset = 0, type = S7Type.REAL)
    public float testResistance01;
    //安全接地1电阻最小值(Ω)
    @S7Variable(byteOffset = 356, bitOffset = 0, type = S7Type.REAL)
    public float testResistanceMin01;
    //安全接地1电阻最大值(Ω)
    @S7Variable(byteOffset = 360, bitOffset = 0, type = S7Type.REAL)
    public float testResistanceMax01;
    //安全接地1电阻值单位
    @S7Variable(byteOffset = 364, arraySize = 4, type = S7Type.BYTE)
    public byte[] testUnit01;

    //安全接地2电阻值
    @S7Variable(byteOffset = 370, bitOffset = 0, type = S7Type.REAL)
    public float testResistance02;
    //安全接地2电阻最小值(Ω)
    @S7Variable(byteOffset = 374, bitOffset = 0, type = S7Type.REAL)
    public float testResistanceMin02;
    //安全接地2电阻最大值(Ω)
    @S7Variable(byteOffset = 378, bitOffset = 0, type = S7Type.REAL)
    public float testResistanceMax02;
    //安全接地2电阻值单位
    @S7Variable(byteOffset = 382, arraySize = 4, type = S7Type.BYTE)
    public byte[] testUnit02;

    //安全接地3电阻值
    @S7Variable(byteOffset = 388, bitOffset = 0, type = S7Type.REAL)
    public float testResistance03;
    //安全接地3电阻最小值(Ω)
    @S7Variable(byteOffset = 392, bitOffset = 0, type = S7Type.REAL)
    public float testResistanceMin03;
    //安全接地3电阻最大值(Ω)
    @S7Variable(byteOffset = 396, bitOffset = 0, type = S7Type.REAL)
    public float testResistanceMax03;
    //安全接地3电阻值单位
    @S7Variable(byteOffset = 400, arraySize = 4, type = S7Type.BYTE)
    public byte[] testUnit03;

    //绝缘电阳电阳值
    @S7Variable(byteOffset = 406, bitOffset = 0, type = S7Type.REAL)
    public float testDielectric;
    //绝缘电阻电阻最小值(MO)
    @S7Variable(byteOffset = 410, bitOffset = 0, type = S7Type.REAL)
    public float testDielectricMin;
    //绝缘电阻电阻最大值(MO)
    @S7Variable(byteOffset = 414, bitOffset = 0, type = S7Type.REAL)
    public float testDielectricMax;
    //绝缘电阻值单位
    @S7Variable(byteOffset = 418, arraySize = 4, type = S7Type.BYTE)
    public byte[] testUnit04;

    //耐压测试漏电流值
    @S7Variable(byteOffset = 424, bitOffset = 0, type = S7Type.REAL)
    public float testHeightVoltage;
    //耐压测试漏电流最小值(mA)
    @S7Variable(byteOffset = 428, bitOffset = 0, type = S7Type.REAL)
    public float testHeightVoltageMin;
    //耐压测试漏电流最大值(mA)
    @S7Variable(byteOffset = 432, bitOffset = 0, type = S7Type.REAL)
    public float testHeightVoltageMax;
    //耐压测试漏电流值单位
    @S7Variable(byteOffset = 436, arraySize = 4, type = S7Type.BYTE)
    public byte[] testUnit05;
}
